/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MainView.java
 *
 * Created on 2011-11-23, 23:06:32
 */

package view;

/**
 *
 * @author bhlb
 */
public class MainView extends javax.swing.JFrame {

	private MainViewController mainViewController;
    /** Creates new form MainView */
    public MainView() {
    	mainViewController = new MainViewController(this);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

//        buttonsPanel1 = new view.ButtonsPanel();
//        vipManagePanel1 = new view.VipManagePanel();
//        loginPanel = new LoginPanel(mainViewController);
        s = new GiftPanel();
//        setSize(1100, 700);
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);
        getContentPane().setLayout(new java.awt.FlowLayout());
        mainViewController.showLoginView();
//        getContentPane().add(loginPanel);	
//        getContentPane().removeAll();	
//        getContentPane().remove(loginPanel);	
//        mainViewController.showMainView();

//        getContentPane().add(buttonsPanel1);
//        getContentPane().add(vipManagePanel1);
      

        pack();
    }// </editor-fold>

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MainView().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify
//    private view.ButtonsPanel buttonsPanel1;
//    private view.VipManagePanel vipManagePanel1;
//    private LoginPanel loginPanel;
    private GiftPanel s;
    // End of variables declaration

}
